From: Keir Fraser Date: Tue, 19 May 2009 00:18:35 +0000 (+0100) Subject: stubdom: fix issue with phy disks X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13921 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=afc456654cd46766638e24fbe30bdea5854902f4;p=xen.git stubdom: fix issue with phy disks Add an exception for stubdoms in the same_vm hotplug script function. Signed-off-by: Stefano Stabellini --- diff --git a/tools/hotplug/Linux/block-common.sh b/tools/hotplug/Linux/block-common.sh index a0ebc9b12a..efedbf50d4 100644 --- a/tools/hotplug/Linux/block-common.sh +++ b/tools/hotplug/Linux/block-common.sh @@ -110,7 +110,8 @@ same_vm() # allowed. local othervm=$(xenstore_read_default "/local/domain/$otherdom/vm" \ "$FRONTEND_UUID") - - [ "$FRONTEND_UUID" = "$othervm" ] + local target=$(xenstore_read_default "/local/domain/$FRONTEND_ID/target" \ + "-1") + [ "$FRONTEND_UUID" = "$othervm" -o "$target" = "$otherdom" ] }